//
//	 ______    ______    ______    
//	/\  __ \  /\  ___\  /\  ___\   
//	\ \  __<  \ \  __\_ \ \  __\_ 
//	 \ \_____\ \ \_____\ \ \_____\ 
//	  \/_____/  \/_____/  \/_____/ 
//
//	Powered by BeeFramework
//
//
//  BaseBoard.m
//  iHeima
//
//  Created by he chao on 5/22/14.
//  Copyright (c) 2014 leon. All rights reserved.
//

#import "BaseBoard.h"

#pragma mark -

@interface BaseBoard()
{
	//<#@private var#>
}
@end

@implementation BaseBoard

- (void)load
{
}

- (void)unload
{
}

#pragma mark - Signal

ON_CREATE_VIEWS( signal )
{
    self.view.backgroundColor = [UIColor whiteColor];
}

ON_DELETE_VIEWS( signal )
{
}

ON_LAYOUT_VIEWS( signal )
{
}

ON_WILL_APPEAR( signal )
{
}

ON_DID_APPEAR( signal )
{
}

ON_WILL_DISAPPEAR( signal )
{
}

ON_DID_DISAPPEAR( signal )
{
}

ON_SIGNAL3( BeeUINavigationBar, LEFT_TOUCHED, signal )
{
    [self.stack popBoardAnimated:YES];
}

ON_SIGNAL3( BeeUINavigationBar, RIGHT_TOUCHED, signal )
{
}

- (void)showNaviBar{
    self.view.backgroundColor = [UIColor whiteColor];
    if (IOS7_OR_LATER) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
        self.extendedLayoutIncludesOpaqueBars = NO;
        self.modalPresentationCapturesStatusBarAppearance = NO;
    }
//    if (IOS7_OR_LATER) {
//        [BeeUINavigationBar setBackgroundImage:IMAGESTRING(@"navi_bar_iphone5")];
//    }
//    else {
//        [BeeUINavigationBar setBackgroundImage:IMAGESTRING(@"navi_bar")];
//    }
    
//    self.view.backgroundColor = RGB(242, 242, 242);
//    [BeeUINavigationBar setTitleColor:[UIColor whiteColor]];
//    [BeeUINavigationBar setBackgroundImage:[IMAGESTRING(@"navi_bar") stretchableImageWithLeftCapWidth:1 topCapHeight:0]];
}

- (void)showBackBtn{
    [self showBarButton:UINavigationBar.BARBUTTON_LEFT image:IMAGESTRING(@"navi_back")];
}

- (void)closeAnimating{
    [[BeeUITipsCenter sharedInstance] dismissTips];
//    if (myTableView) {
//        [myTableView.pullToRefreshView stopAnimating];
//        [myTableView.infiniteScrollingView stopAnimating];
//    }
    
}

@end
